﻿@using SSB.Web.Mvc.Html
@model NOSDC.Models.ForgotViewModel

@section Title{
    @Html.CreatePageTitle("So you forgot your password, huh?")
}

@section MetaTags{
    @Html.CreateMetaDescription("Forgot password.")
}
@section Right{
    @{Html.RenderAction("GetUpcomingEvent", "Events");}
    @{Html.RenderAction("RecentJobs", "Jobs");}
}

<fieldset class="regFormBG">
    <h2 style="font-size: 22px; padding-bottom: 1px; color: #236B8E; margin: 0; padding: 0;">FORGOT PASSWORD</h2>
    <div style="font-size: 12px;">If you have forgotten your password, please the email you registered with. An email will be sent to you with the instructions to reset your password.</div>
    <div style=" padding-top:10px;">
        @Html.ValidationSummary(true, "Please correct the errors and try again.")
    </div>
    @using (Html.BeginForm())
    {
        <div>
            <div class="regFormLabel">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email, new { @class = "regForm" })
                @Html.ValidationMessageFor(m => m.Email)
            </div>
             <div class="regFormLabel">
                @Html.LabelFor(m => m.Captcha)
            </div>
            <div class="regFormLabel">
                <div>
                    <div>@Html.MvcCaptcha()</div>
                </div>
                @Html.TextBoxFor(m => m.Captcha, new { @class = "regForm", style = "clear:both;", title = "This Captcha Is Case Sensitive" })
                @Html.ValidationMessageFor(m => m.Captcha)
            </div>
            <br />
            <br style="clear:both;" />
            
            <div class="buttons">
                <button type="submit" class="regular">Request password</button>
            </div>
        </div> 
        @Html.AntiForgeryToken()
    }
</fieldset>
<br/>

@section JavaScript{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
      <script type="text/javascript">
      $("#Home").addClass("selected");
      </script>
}